package cc.minos.components.skins
{
	
	/**
	 * ...
	 * @author Minos
	 */
	public class ScrollBarSkin extends Skin
	{
		public var thumb:RectSkin;
		public var track:RectSkin;
		
		public var btnUp:RectSkin;
		public var btnDown:RectSkin;
		
		public function ScrollBarSkin( w:Number = 15 , h:Number = 100 )
		{
			//super();
			
			addChild( track = new RectSkin( w , h , 0xCCCCCC ) );
			addChild( thumb = new RectSkin( w , h - 30 , 0x666666 ) );
			addChild( btnUp = new RectSkin( w , 15 , 0x333333 ) );
			addChild( btnDown = new RectSkin( w , 15 , 0x333333 ) );
			
			track.height = h - btnUp.height - btnDown.height;
			track.y = btnUp.height;
			thumb.y = btnUp.height;
			btnDown.y = h - btnDown.height;
		
		}
		
		override public function draw():void
		{
			//super.draw();
		
		}
	
	}

}